package cn.lingyangwl.agile.msg.push.assembly;

import cn.lingyangwl.agile.msg.push.model.entity.Receiver;
import cn.lingyangwl.agile.msg.push.model.rqrs.receiver.ReceiverResp;
import cn.lingyangwl.agile.msg.push.model.rqrs.receiver.ReceiverSaveReq;
import cn.lingyangwl.agile.msg.push.model.rqrs.receiver.ReceiverUpdateReq;
import org.mapstruct.Mapper;

/**
 * 消息接收者
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface ReceiverAssembly {
  ReceiverResp toReceiverResp(Receiver source);
  
  Receiver toReceiver(ReceiverSaveReq source);
  
  Receiver toReceiver(ReceiverUpdateReq source);
}
